package dfbz.homework4;

public class Student extends Person{
    private int score;

    public Student() {
    }

    public Student(int score) {
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
    public void kaoshi(String name){
        System.out.println(name+"同学"+"考试得了"+this.score+"分");
    }
}
